Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: Creating an Excel file
Feedback Type: Question
Product Area: Notes Client
Technical Area: Application Development
Platform: Windows
Release: 8.5.3
Reproducible: Not applicable

I am trying to set a date format on on Excel export, if I know the column letter, the below works.

Set excelSheet = excelNewWkbk.ActiveSheet
Set cell = excelSheet.Columns("D")
cell.NumberFormat = "dd/mm/yyyy"

The issue I am having is that we allow the user to order the columns to there own requirments, which means I don't know the colomn letter that the date field will be in, but (because of the LS code looping) I know the number ie 2 = B, 5= E, so I want to set the format based on the coloumn number, I believe the syntax is something like Range(Columns(4), Columns(4)).Select but I can't seem to get this working in LotusScript with NumberFormat, has anyone got an example of selecting column (based on a number) then applying a NumberFormat?


Feedback number WEBB9D9LQB created by ~Sigmund Bubjipylynivu on 11/08/2013

Status: Open
Comments:

Creating an Excel file (~Sigmund Bubjip... 8.Nov.13)
. . Use ASCII code and offset (~Dan Kikiterobu... 9.Nov.13)
. . . . limted to first 26 (~Sigmund Bubjip... 11.Nov.13)
. . . . . . You can select cells by row and col... (~Bella Kinilyad... 11.Nov.13)
. . . . . . . . thanks (~Sigmund Bubjip... 12.Nov.13)
. . Why reinvent the wheel? (~Martha Lopjipy... 11.Nov.13)
. . . . use of NumberFormat (~Sigmund Bubjip... 12.Nov.13)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS